<?php

/**
 * import language file
 */
try {
    if(file_exists("./lang/pl.php")){
        require_once './lang/pl.php';
    }
    else {
        throw new Exception("Framework could not load language file! You must find the language file and choose path!");
    }
} catch (Exception $ex) {
    echo $ex->getMessage();
}

/**
 * load main configuration
 */
try {
    if(file_exists("./configs/mainconfiguration.php")){
        require_once './configs/mainconfiguration.php';
    }
    else {
        throw new Exception(ERROR_LOAD_MAIN_CONFIGURATION);
    }
} catch (Exception $ex) {
    echo $ex->getMessage();
}
?>